package main

import "fmt"

//channel是goroutine沟通的桥梁
func main() {
	c := make(chan bool)
	go func() {
		fmt.Println("gogogo")
		c<-true
		close(c)
	}()
	//<-c
	for v := range c{
		fmt.Println(v)
	}
}